import axios from "axios";
import { SearchData } from '@/interface/orderInterface';

export const getSearch = (data:SearchData) => {
    return axios.post("http://woniu.manshiguang.fun/orderManagementAD/getSearch",data)
}
export const getOne = (data:any) => {
    return axios.post("http://woniu.manshiguang.fun/orderManagementAD/getOne",data)
}
export const getUpdate = (data:any) => {
    return axios.post("http://woniu.manshiguang.fun/orderManagementAD/getUpdate",data)
}
export const getHistory = (data:any) => {
    return axios.post("http://woniu.manshiguang.fun/orderManagementAD/getHistory",data)
}
export const deleteOne = (data:any) => {
    return axios.post("http://woniu.manshiguang.fun/orderManagementAD/deleteOne",data)
}
export const getCash = (data:any) => {
    return axios.post("http://woniu.manshiguang.fun/orderManagementAD/getCash",data)
}
export const getAfterOrder = (data:any) => {
    return axios.post("http://woniu.manshiguang.fun/orderManagementAD/getAfterOrder",data)
}
//单个售后详情
export const getAfterOrderOne = (data:any) => {
    return axios.post("http://woniu.manshiguang.fun/orderManagementAD/getAfterOrderOne",data)
}
//修改售后备注
export const updateAfterOrder = (data:any) => {
    return axios.post("http://woniu.manshiguang.fun/orderManagementAD/updateAfterOrder",data)
}



